<?php

use Illuminate\Database\Seeder;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
    	 $data=[];
        for($i=0;$i<100;$i++)
        {
        	$temp['name'] = str_random(6);
        	$temp['password'] = Crypt::encrypt('123');
        	$temp['email'] = str_random(5)."@qq.com";
        	$temp['phone'] = rand(10000000000,99999999999);
        	$time=time();
        	$temp['created_at']=$time;
        	$temp['updated_at']=$time;
        	$data[] = $temp;
        }
            DB::table('users') -> insert($data);
    }
}
